[VERSN2]

unlock_memory all



// ───────────────────────────────────── ■ │ Bartender Stuff │ ■ ─────────────────────────────────────

// ----------// Create Folders \\----------

create_folder absolute "scripts"
create_folder absolute "scripts\BartenderSettings"
create_folder absolute "scripts\BartenderSettings\Advanced"
create_folder absolute "scripts\BartenderSettings\Basic"

// ----------\\ Create Folders //----------




// ----------// Install Files \\----------

move_file override relative absolute ..\bartender\dinput8.dll dinput8.dll
move_file override relative absolute ..\bartender\NFSMWBartender.asi scripts\NFSMWBartender.asi

move_file override relative absolute ..\bartender\BartenderSettings\Basic\General.ini scripts\BartenderSettings\Basic\General.ini
move_file override relative absolute ..\bartender\BartenderSettings\Basic\Supports.ini scripts\BartenderSettings\Basic\Supports.ini
move_file override relative absolute ..\bartender\BartenderSettings\Basic\Cosmetic.ini scripts\BartenderSettings\Basic\Cosmetic.ini

move_file override relative absolute ..\bartender\BartenderSettings\Advanced\CarSpawns.ini scripts\BartenderSettings\Advanced\CarSpawns.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\CarTables.ini scripts\BartenderSettings\Advanced\CarTables.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\Helicopter.ini scripts\BartenderSettings\Advanced\Helicopter.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\Strategies.ini scripts\BartenderSettings\Advanced\Strategies.ini
move_file override relative absolute ..\bartender\BartenderSettings\Advanced\Heat.ini scripts\BartenderSettings\Advanced\Heat.ini

// ----------\\ Install Files //----------




// ----------// Missing Textures \\----------

add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X6  HEAT_X6  ..\bartender\BartenderSettings\MissingTextures\HEAT_X6.dds
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X7  HEAT_X7  ..\bartender\BartenderSettings\MissingTextures\HEAT_X7.dds
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X8  HEAT_X8  ..\bartender\BartenderSettings\MissingTextures\HEAT_X8.dds
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X9  HEAT_X9  ..\bartender\BartenderSettings\MissingTextures\HEAT_X9.dds
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES HEAT_X10 HEAT_X10 ..\bartender\BartenderSettings\MissingTextures\HEAT_X10.dds

// ----------\\ Missing Textures //----------




// ----------// Fix COPSUV driver \\----------

move_file override relative absolute copsuv_driver_fix\copsuv_driver_fix.bin CARS\COPSUV\GEOMETRY.BIN

// credits for this fix: made by rng_guy
// this is because the vanilla COPSUV driver uses a wrong texture

// ----------\\ Fix COPSUV driver //----------




// ───────────────────────────────────── ■ │ Healthbars │ ■ ─────────────────────────────────────


combobox "Yes, install healthbars" "No, don't install healthbars" "Install healthbars for cops (mod by trelbutate)?"

"Yes, install healthbars"
move_file override relative absolute healthbars.asi scripts\healthbars.asi

"No, don't install healthbars"
// do nothing
end


// ----------------------- SMS Messages -----------------------

combobox "Yes, install SMS messages" "No, don't install SMS messages" "Install custom ingame SMS messages?"

"Yes, install SMS messages"
append sms_messages.end

"No, don't install SMS messages"
// do nothing
end




// Continue installation
append strings.end
append descriptions.end
append preset_rides.end
